﻿function TextToggle(textBox)
{
    if(textBox.value == 'Add a note regarding the recipient...')
    {
        textBox.value = '';
    }
    else if(textBox.value == '')
    {
        textBox.value = 'Add a note regarding the recipient...';
    }
}

function ToggleAlternateSection( chkAlternateID, phAlternateSectionID, ddlCustodianStateID ) 
{
    var chkDeliverToAlternateApplicant = ControlWith( chkAlternateID );
    var phAlternateSection = ControlWith( phAlternateSectionID );
    var ddlCustodianState = ControlWith( ddlCustodianStateID );   
    
    phAlternateSection.disabled = !chkDeliverToAlternateApplicant.checked;
    ddlCustodianState.disabled = !chkDeliverToAlternateApplicant.checked;  
    phAlternateSection.contentEditable = !chkDeliverToAlternateApplicant.checked;   
    
}   


function ControlWith( id )
{
    return document.getElementById( id );
}


function AlternateToggle(textBox, chkBoxID)
{
  // var chkBox = ControlWith(chkBoxID);
    if(textBox)
    {     
        textBox.contentEditable = chkBoxID.checked;
    }
    
    if(!chkBoxID.checked)
    {
        textBox.valueOf = '';
    }
}